import QtQuick 2.0
import "../../js/UI.js" as UI
import "../../js/util.js" as Util
Rectangle{
    property alias m_text: m_Text_id.text
    //property alias m_text_id: m_Text_id
    Component.onCompleted: {
        m_Text_id.font.pixelSize = Util.isHDScreen() ? UI.hdCommonSize :  UI.pcCommonSize
    }

    id: cancel
    width: Util.isHDScreen() ? m_lineValue*1.6 : m_lineValue*1.37
    height:Util.isHDScreen() ? m_lineValue*1.2 : m_lineValue*0.62
    color: mouse.pressed ? UI.bottompresscolor : UI.bottomcolor
    radius: 5
    signal clickSignal
    AText {
        id:m_Text_id
        text: ""
        anchors.centerIn: parent
        color: "#000000"//"#ffffff"
        font.pixelSize:Util.isHDScreen() ? UI.hdCommonSize :  UI.pcCommonSize
        font.family: UI.fontfamily
    }
    MouseArea{
        id: mouse
        anchors.fill: parent
        onClicked: {
            clickSignal()
        }
    }
}


